home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: mackboring@aol.com (MackBoring)
- Newsgroups: comp.lang.c++
- Subject: Solution Needed ASAP
- Date: 21 Mar 1996 06:55:23 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4irg3b$phr@newsbf02.news.aol.com>
- Reply-To: mackboring@aol.com (MackBoring)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- Need simple C solutions to (2) Problems, I have asked for help before and
- would appreciate any help possible.
-
- PROBLEM #1...............Use of Arrays to solve
- Write a program which will ask for the encrypted text(See below) to be
- entered from the keyboard,then decode the text, and print out the
- corrected message. Uppercase only is fINE
- APLPHABET: A B C D E F G H I J K L M N O P Q R T S U V W X Y Z
- CODE: K D X L G T O E S A N H R F U M P V W I B Z Q Y J C
- Letter substitution is as follows every time you see a K in the code a A
- would be subsituted for it
-
- The encrypted text is:
- ST JUB EKZG QVSIIGF IEG MVUOVKR MVUMGVHJ IESW
- WGFIGFXG QSHH DG BFLGVWIKFLKDHG
-
-
- PROBLEM# 2....Use of functions to solve
-
- Compute the areas of the following shapes:
- Square: Side X Side
- Rectangle: Length x Width
- Triangle: (1/2) x Base x Height
- Circle: 3.14159 x radius x radius
- Place each computation in a seperate function, each function should
- announce the shape being computed
- request the proper dimensions, compute and print the area and return to
- main.
- Anumerical menu to select the available function needs to be created with
- a 0 being the termination character
-
- Thanks for any help...........................Fred
-